import request from '@/utils/request'

//获取编目定义列表
export function getCatalogList(data) {
	return request({
		method: 'get',
		url: 'tbNetDefCatalog/queryPageList',
		params: data
	})
}

//添加编目定义
export function addedCatalog(data) {
	return request({
		method: 'post',
		url: 'tbNetDefCatalog/add',
		data
	})
}

//修改编目定义
export function updateCatalog(data) {
	return request({
		method: 'post',
		url: 'tbNetDefCatalog/update',
		data
	})
}

//删除编目定义
export function deleteCatalog(id) {
	return request({
		method: 'get',
		url: 'tbNetDefCatalog/delete/' + id
	})
}